<?php
/**
 * @package scuttle
 * @file /blocks/scuttle_bookmarks_new.php
 **/


if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;

require_once XOOPS_MODULE_PATH. '/scuttle/include/TagService.php';

function scuttle_b_tagcloud_show() {

	$block = array();

	$root =& XCube_Root::getSingleton();
	$db =& $root->mController->mDB;
	// gett tag word
	$popularTags =TagService::getAllTags() ;
	// tag cloud font size
	$block = TagService::tagCloud($popularTags, $steps = 20, $sizemin = 120, $sizemax = 300, $sortOrder = NULL);
	return $block;
}


?>